package com.easthome.service.impl;

import com.easthome.entity.Address;
import com.easthome.entity.UserInfo;
import com.easthome.mapper.AddrMapper;
import com.easthome.service.AddrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddrServiceImpl implements AddrService {
    @Autowired
    private AddrMapper addrMapper;

    @Override
    public List<Address> getAddrList() {
        return addrMapper.getAddrList();
    }

    @Override
    public int addAddAndCho(Integer userId, Address address) {
        int address1 = addrMapper.addAddAndCho(userId, address);

        return address1;
    }
}
